package com.edu.ad.service;

import com.edu.api.entity.ad.PromotionSpace;
import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.api.entity.common.Pageable;
import com.edu.api.entity.common.ResponseDTO;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;

/**
 *
 */
public interface PromotionSpaceService extends IService<PromotionSpace> {

    /**
     * 添加或修改后台广告位
     * @param space
     * @param request
     * @return
     */
    ResponseDTO addOrUpdateBackStageSpace(PromotionSpace space, HttpServletRequest request);

    /**
     * 条件获取所有广告位信息
     * @param pageable
     * @param space
     * @return
     * @throws ParseException
     */
    ResponseDTO getAllSpace(Pageable pageable, PromotionSpace space) throws ParseException;

    /**
     * 批量删除广告位
     * @param ids
     * @return
     */
    ResponseDTO deleteSpaceByIds(List ids);


}
